Skip to main content

AddMText

Description

This method adds the MTEXT entity.

ParameterTypeDescription
DataTdxfExportDataIt contains the fields: • Text – text string

• Point – coordinates of base point • FHeight – font height • Rotation – rotation angle in degrees • HAlign - horizontal text justification type. |

HAlign valueDescription
0Left
1Center
2Right
3Aligned (if vertical alignment = 0)
4Middle (if vertical alignment = 0)
5Fit (if vertical alignment = 0)
Note

You can specify text formatting correspondingly to AutoCAD(R). For example the following code lines specify italic, underlined text 'Register on www.cadsofttools.com' line with "Courier New" font:

Data.Text := '{­\fCourier New|i1;\LRegister on www.cadsofttools.com}';

Syntax

procedure AddMText(const Data: TdxfExportData);